package com.example.demo.service;

import com.example.demo.entity.Rule;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface RuleService {
    Rule createRule(Rule rule);
    boolean updateRule(Rule rule);
    boolean deleteRule(Integer id);
    Rule getRuleById(Integer id);
    PageInfo<Rule> getRuleList(Integer page, Integer size);
    boolean updateRuleStatus(Integer id, Integer status);

    List<Rule> getRuleTree(Integer menu);
}
